<?

?>
<table width="100%" class="cms_browsetext"  border="0" cellspacing="0" cellpadding="0">
    <TR>
      <TH align="left" width="35">&nbsp;</TH>
      <TH align="left">Title</TH>
      <TH align="left">Date</TH>
      <TH width="130" align="left">Action</TH>
    </TR>


<?

	$cmsDocument->resetIterator();

	if ($cmsDocument->totalDocuments() > 0) {


		while ($row = $cmsDocument->nextDocument()){
?>
    <tr> 
      <td colspan="5" align="left"> 
        <img height="7" src="/cms/images/greyline.gif"  width="100%" />
      </td>
    </tr>
    <tr>
    	<td class="cms_browsetext">&nbsp;</td>
    	<td class="cms_browsetext">
<a href="/html/pageBuilder.php?id=<?= $row->categorycode ?>" target="_blank" ><?= magicClean($row->title)?></a>
    	</td>
    	<td class="cms_browsetext"><?= date("d-M-y", strtotime($row->documentdate)); ?></td>
    	<td class="cms_browsetext">
<?
	if(editFormAuth($authInfo, $formDescription, $row->documentcode, $db)) {
?>
<a href="/cms/html/index.php?fileNo=<?= SITE_WEBPAGEBUILDER ?>&id=<?= $row->categorycode ?>" >
Edit
</a>
<?
					}
					if(deleteFormAuth($authInfo, $formDescription, $row->documentcode, $db)) {
?>
 / <a href="/cms/html/index.php?fileNo=4&documentCode=<?= $row->documentcode; ?>&returnURLEncoded=<?= urlencode($returnURL) ?>&cancelURLEncoded=<?= urlencode($cancelURL) ?>" >Delete</a>
<?
					}
?>

    	</td>
   	</tr>
<?
		}
		?>
    <tr> 
      <td colspan="5" align="left"> 
        <img height="7" src="/cms/images/greyline.gif"  width="100%" />
      </td>
    </tr>
<?
	}
?>
 </table>
 <?
	$addMode = CMS_ADD_QUICK_ADD_GO;
	$addUrlDict = array(
			'fileNo'=> SITE_WEBPAGEBUILDER,
			'formId'=> 187,
	);
 ?>